
function handleParams (data) {
	let params = JSON.parse(JSON.stringify(data))
	delete params.APPID
	delete params.PLATFORM
	return params;
}


function handleQuery(data){
	let params = JSON.parse(JSON.stringify(data))
	params = decodeURIComponent(params)
	params = params.split('&')
    let obj = {}
	params.forEach(row=>{
		row.split('=').forEach((item,index,a)=>{
			obj[a[0]] = a[1]
			
		})
	})
	return obj
}
module.exports = {
	handleParams,
	handleQuery
}


